
public class Ball {
	/**
	 * ship is a holder of the squares it occupies
	 * ship keeps track of horizontal and vertical placements throughout the game
	 * called by Game class
	 * 
	 * we should ask ship if we hit or missed it with our guess.
	 * 
	 * ship should update the statistics of the ideal square
	 * if we had multiple ships we should make a class called fleet to hold all the different ships
	 * and then fleet would check with its ships to see if we hit or missed.
	 * 
	 * @author Larry Savago
	 * @author Casey Huckins
	 * @date 4/13/2012
	 *
	 */

	
	public static final int SIZE = 1;
	private Square[] myBall = new Square[SIZE];
	//private boolean orientation = false; // horizontal

	
	public void buildBall(Square[] s) {
		myBall = s;
	}
	
	public void set(Square s) {
		myBall[0] = s;
	}
	
	public boolean search(Square target) {
		if (myBall[0].equals(target)) {
			return true;
		}
		return false;
	}

	
	public String toString() {
		String s = "\r\n";
		s = s + myBall[0].toString();
		return s + "\r\n";
	}
}
